use crate::utils::{Array, Video, VideoFormat};

pub fn videos(category: &str) -> Array<Video> {
    match category {
        "festivechina" => Array {  // https://www.chinadaily.com.cn/culture/topics/festivechina
            items: vec![
                Video {
                    title: "Festive China: 24 Solar Terms".into(),
                    description: "The traditional Chinese lunar calendar divides the year into 24 solar terms. More than 2,000 years ago, ancient Chinese people created this overall framework to mark the annual passage of time based on observations of the sun's motion. Nowadays, the 24 solar termsnot only apply to farming, but also guide Chinese people in everyday life.".into(),
                    url: "https://www.chinadaily.com.cn/a/202302/02/WS5e38cfd9a310128217274a53.html".into(),
                    format: VideoFormat::M3U8,
                    src: "https://v-hls.chinadaily.com.cn/stream/606006/f815a12c-6c7a-4301-9999-524b8ad10869/c7fb6547-9b97-4557-ba53-484f322d1933_h.m3u8".into(),
                    poster: "https://img2.chinadaily.com.cn/images/202302/07/63e1a8b8a31057c4b4b49db0.jpeg".into(),
                },
                Video {
                    title: "Festive China: Spring Festival".into(),
                    description: "The first day of the first lunar month is Spring Festival, the beginning of a new year for China.".into(),
                    url: "https://www.chinadaily.com.cn/a/202312/23/WS61f71878a310cdd39bc84521.html".into(),
                    format: VideoFormat::M3U8,
                    src: "https://v-hls.chinadaily.com.cn/stream/606003/2bc7c850-6064-4148-8d53-850ba0acc0fd/aace07c3-e37a-4a3f-b615-6370a1232d87_h.m3u8".into(),
                    poster: "https://img2.chinadaily.com.cn/images/202312/23/65868feba31040acaf83232a.jpeg".into(),
                },
                Video {
                    title: "Festive China: Lantern Show".into(),
                    description: "Chinese people have appreciated the beauty of lanterns for years. Like a beacon that lights up the way home, it is customary to admire the charm of lanterns during Lantern Festival and Mid-Autumn Festival, two festivals that celebrate reunion.".into(),
                    url: "https://www.chinadaily.com.cn/a/202309/28/WS6514ed4ea310d2dce4bb85e2.html".into(),
                    format: VideoFormat::M3U8,
                    src: "https://v-hls.chinadaily.com.cn/stream/606927/cc387768-b170-43a7-a05b-2cde84ac5b42/515684a8-f953-465b-a594-a94d6181163b_h.m3u8".into(),
                    poster: "https://img2.chinadaily.com.cn/images/202309/28/6514f3efa310d2dc6d28ae25.jpeg".into(),
                },
                Video {
                    title: "Festive China: Start of Spring".into(),
                    description: "".into(),
                    url: "https://www.chinadaily.com.cn/a/202302/04/WS61fc5e78a310cdd39bc849a4.html".into(),
                    format: VideoFormat::M3U8,
                    src: "http://v-hls.chinadaily.com.cn/stream/606009/74ed0132-a4c3-4d1d-a884-ad8299fd7c82/9372edcc-00e4-4f50-ad57-cd4870c7dfbd_h.m3u8".into(),
                    poster: "https://img2.chinadaily.com.cn/images/202202/04/61fc5e78a310cdd3d82a9beb.jpeg".into(),
                },
                Video {
                    title: "Festive China: Qingming".into(),
                    description: "Qingming is not only one of China's 24 solar terms, but also an occasion for Chinese people to honor lost family members.".into(),
                    url: "https://www.chinadaily.com.cn/a/202404/02/WS5e895dbba310128217284790.html".into(),
                    format: VideoFormat::M3U8,
                    src: "https://v-hls.chinadaily.com.cn/stream/606009/188ff6ae-ffe6-42f8-b8b8-8ee8159423ae/b25b36d2-c803-420b-ac85-8d0e33e190d0_h.m3u8".into(),
                    poster: "https://img2.chinadaily.com.cn/images/202304/05/642cc227a31057c4b4b89134.jpeg".into(),
                },
                Video {
                    title: "Festive China: Summer".into(),
                    description: "China is ushering in summer with the calls of frogs and chirping of cicadas. There are six solar terms in summer: Start of Summer, Grain Buds, Grain in Ear, Summer Solstice, Minor Heat and Major Heat.".into(),
                    url: "https://www.chinadaily.com.cn/a/202306/21/WS5eb0c8a0a310a8b24115368d.html".into(),
                    format: VideoFormat::M3U8,
                    src: "https://v-hls.chinadaily.com.cn/stream/606015/853421e1-514e-41b3-8426-9f573d9e4ff7/35622ffe-d68a-4fdc-937d-ccb0281831a6_h.m3u8".into(),
                    poster: "https://img2.chinadaily.com.cn/images/202005/05/5eb0cf79a310a8b2fa431ca9.jpeg".into(),
                },
                Video {
                    title: "Festive China: Dragon Boat Festival".into(),
                    description: "Watch this video to learn more about the legend, as well as traditions and festive foods related to the festival.".into(),
                    url: "https://www.chinadaily.com.cn/a/202406/07/WS5ef3f711a31083481725543a.html".into(),
                    format: VideoFormat::M3U8,
                    src: "https://v-hls.chinadaily.com.cn/stream/606018/054b1d70-4666-4b6d-84e1-2920e007684d/b92a97a6-c1ad-4cbf-b7c3-fcff5985025e_h.m3u8".into(),
                    poster: "https://img2.chinadaily.com.cn/images/202406/07/666265e6a31082fc2b6f6991.jpeg".into(),
                },
                Video {
                    title: "Festive China: The romantic story behind China's Valentine's Day".into(),
                    description: "The seventh day of the seventh lunar month is Qixi, widely regarded as China's Valentine's Day.".into(),
                    url: "https://www.chinadaily.com.cn/a/202408/09/WS5f44677ba310736c2dea4b28.html".into(),
                    format: VideoFormat::M3U8,
                    src: "https://v-hls.chinadaily.com.cn/stream/606024/a6fbd70c-adb8-4147-9fa1-d4a33774ccaf/015a7888-6880-42c5-bd3b-9ba56ac6d88c_h.m3u8".into(),
                    poster: "https://img2.chinadaily.com.cn/images/202408/09/66b578d3a3104e74e4a7429a.jpeg".into(),
                },
                Video {
                    title: "Festive China: Autumn".into(),
                    description: "When leaves change their color, when birds begin to migrate, and when farms are ready to gather crops, it's the season of autumn, a golden time to indulge in the joy of harvest.".into(),
                    url: "https://www.chinadaily.com.cn/a/202309/23/WS63314a07a310fd2b29e79c45.html".into(),
                    format: VideoFormat::M3U8,
                    src: "https://v-hls.chinadaily.com.cn/stream/606627/b3f3baad-3d02-4852-95c0-f7f2cb6d54a3/948ab504-22f0-4ed2-8c78-305266eb7fe1_h.m3u8".into(),
                    poster: "https://img2.chinadaily.com.cn/images/202209/26/63314a07a310fd2beca39166.jpeg".into(),
                },
                Video {
                    title: "Festive China: Chongyang Festival".into(),
                    description: "When clear and refreshing autumn arrives and chrysanthemums envelope the world, it's time for the Chinese Chongyang Festival, or Double Ninth Festival.".into(),
                    url: "https://www.chinadaily.com.cn/a/202410/11/WS5f937d80a31024ad0ba80a65.html".into(),
                    format: VideoFormat::M3U8,
                    src: "https://v-hls.chinadaily.com.cn/stream/606030/b53414c4-3eca-49dd-a4ff-42738e0d4532/82128b58-a094-4040-901d-39f7f09d15fc_h.m3u8".into(),
                    poster: "https://img2.chinadaily.com.cn/images/202410/11/670867fba310f1268d829616.jpeg".into(),
                },
                Video {
                    title: "Festive China: Mid-Autumn Festival".into(),
                    description: "The 15th day of the eighth lunar month is the Mid-Autumn Festival, a celebration that focuses on the moon. From ancient times, it has been customary for Chinese to reunite with family members and enjoy a sweet mooncake while observing the beautiful moon.".into(),
                    url: "https://www.chinadaily.com.cn/a/202409/17/WS66e8d490a3103711928a83ba.html".into(),
                    format: VideoFormat::M3U8,
                    src: "https://v-hls.chinadaily.com.cn/stream/607227/bcb7287f-20b1-41d6-81c5-d234f71d7fd2/d8037c78-664f-4184-b3de-d98b06b1c454_h.m3u8".into(),
                    poster: "https://img2.chinadaily.com.cn/images/202409/17/66e8e376a3103711c3486970.jpeg".into(),
                },
                Video {
                    title: "Festive China: Winter".into(),
                    description: "As the temperature gradually drops, some animals begin to hibernate and most plants fall into a long period of dormancy. Nevertheless, as snowfall gradually thickens, the winter season in China still pulses with vitality.".into(),
                    url: "https://www.chinadaily.com.cn/a/202311/08/WS5fa5d570a31024ad0ba83a7a.html".into(),
                    format: VideoFormat::M3U8,
                    src: "https://v-hls.chinadaily.com.cn/stream/606033/6e6618db-cad8-4591-b891-8b2587d1240a/ba2c5f2c-b28f-43e7-9321-973716a66103_h.m3u8".into(),
                    poster: "https://img2.chinadaily.com.cn/images/202011/07/5fa5f2d7a31024adbd9eb281.jpeg".into(),
                },
            ],
        },
        "2021tochina" => Array {  // https://www.chinadaily.com.cn/culture/specialcoverage/2021tochina
            items: vec![
                Video {
                    title: "Trailer".into(),
                    description: "Let's embark on a journey of discovery in Chinese culture".into(),
                    url: "https://www.chinadaily.com.cn/a/202110/22/WS61722a64a310cdd39bc70908.html".into(),
                    format: VideoFormat::M3U8,
                    src: "https://cds.chinadaily.com.cn/dams/capital/video/202110/22/61722399e4b0f33f152d5a6d/2d336046923a41408789fea91ed104fe.m3u8".into(),
                    poster: "https://img2.chinadaily.com.cn/images/202312/07/657133bea3109068cb012e65.jpeg".into(),
                },
                Video {
                    title: "Episode 1".into(),
                    description: "Let's Go to China: Porcelain with cultural warmth".into(),
                    url: "https://www.chinadaily.com.cn/a/202110/25/WS6176114ea310cdd39bc71028.html".into(),
                    format: VideoFormat::M3U8,
                    src: "https://v-hls.chinadaily.com.cn/stream/606330/55a379a1-ea8d-4119-bcd0-d79d11520cc0/d794e6c5-e81d-4c72-bdb3-fc271d180d24_h.m3u8".into(),
                    poster: "https://img2.chinadaily.com.cn/images/202110/25/61766b7aa310cdd3d8159ed6.jpeg".into(),
                },
                Video {
                    title: "Episode 2".into(),
                    description: "Let's Go to China: Inexplicable Chinese characters".into(),
                    url: "https://www.chinadaily.com.cn/a/202110/27/WS6178b379a310cdd39bc71911.html".into(),
                    format: VideoFormat::M3U8,
                    src: "https://v-hls.chinadaily.com.cn/stream/606330/463a9c5b-ebfe-4571-8756-fa71af544006/9400db53-9a08-4793-95e2-18f2c0c5f1b8_h.m3u8".into(),
                    poster: "https://img2.chinadaily.com.cn/images/202110/27/6178d394a310cdd3d8161677.jpeg".into(),
                },
                Video {
                    title: "Episode 3".into(),
                    description: "Let's Go to China: Amazing Chinese herbs".into(),
                    url: "https://www.chinadaily.com.cn/a/202110/29/WS617b5604a310cdd39bc72133.html".into(),
                    format: VideoFormat::M3U8,
                    src: "https://v-hls.chinadaily.com.cn/stream/606330/d89a478c-182c-4b90-bed5-1a1e3913ffd5/124862e5-c141-4ad3-955c-57a384cd8a17_h.m3u8".into(),
                    poster: "https://img2.chinadaily.com.cn/images/202110/29/617b57fda310cdd3d81699e8.jpeg".into(),
                },
                Video {
                    title: "Episode 4".into(),
                    description: "Let's Go to China: Murals of Mogao grottoes presented on your body".into(),
                    url: "https://www.chinadaily.com.cn/a/202111/01/WS617f4a68a310cdd39bc72845.html".into(),
                    format: VideoFormat::M3U8,
                    src: "https://v-hls.chinadaily.com.cn/stream/606333/6d4c49f0-d218-4974-ab31-c32e5bfa41d9/ab7118bc-7f37-4b9a-93ad-d2fe17159565_h.m3u8".into(),
                    poster: "https://img2.chinadaily.com.cn/images/202111/02/61809253a310cdd3d81755c7.jpeg".into(),
                },
                Video {
                    title: "Episode 5".into(),
                    description: "Let's Go to China: Fascinated by a Monkey King".into(),
                    url: "https://www.chinadaily.com.cn/a/202111/03/WS61822a35a310cdd39bc73111.html".into(),
                    format: VideoFormat::M3U8,
                    src: "https://v-hls.chinadaily.com.cn/stream/606333/66f41720-5241-40bf-9084-cd5ab55e63c1/eedf3b1f-c59f-4f58-ba59-af70e3d4bf8b_h.m3u8".into(),
                    poster: "https://img2.chinadaily.com.cn/images/202111/03/61822bc4a310cdd3d817ada9.jpeg".into(),
                },
                Video {
                    title: "Episode 6".into(),
                    description: "Let's Go to China: China Red in my eyes".into(),
                    url: "https://www.chinadaily.com.cn/a/202111/05/WS6184a6b1a310cdd39bc7395a.html".into(),
                    format: VideoFormat::M3U8,
                    src: "https://v-hls.chinadaily.com.cn/stream/606333/f84edbae-9ccd-4a27-afcf-5fb0169c6760/1640a0bd-7885-4358-a726-b44bc30ca161_h.m3u8".into(),
                    poster: "https://img2.chinadaily.com.cn/images/202111/05/6184a6b1a310cdd3d8183ac6.jpeg".into(),
                },
            ]
        }, 
        _ => Array { items: Vec::new() },
    }
}
